﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" CodeFile="Forums.aspx.cs" Inherits="Forums" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="MainContent">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataSourceID="ForumsDS" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="Topic" DataNavigateUrlFormatString="Threads.aspx?Topic={0}" DataTextField="Topic" HeaderText="Topic" SortExpression="Topic" />
            <asp:BoundField DataField="TotalThreads" HeaderText="Threads" 
                SortExpression="TotalThreads" />
            <asp:BoundField DataField="RecentDate" HeaderText="Last Thread On" 
                SortExpression="RecentDate" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ForumsDS" runat="server" SelectMethod="getForumsData" 
        TypeName="ForumLibrary.Data.ForumWebManager" 
        onobjectcreating="ForumsDS_ObjectCreating"></asp:ObjectDataSource>
</asp:Content>


